package com.atguigu.bigdata.scala.chapter07

import scala.collection.mutable
import scala.collection.mutable.ListBuffer

object Scala03_Collection_Seq_2 {

    def main(args: Array[String]): Unit = {

        // TODO 集合 - Seq - 序列

        // 默认情况下，scala提供的集合都是不可变的
        val buffer = ListBuffer(1,2,3,4)
        val list = List(1,2,3,4)

        val buffer1: mutable.Buffer[Int] = list.toBuffer
        val list1: List[Int] = buffer.toList



    }
}
